<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.storage.Memory.report</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/df4/classnars_1_1storage_1_1Memory_a26cbb4acec5bb2c23a048d7deba4051d.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="a26cbb4acec5bb2c23a048d7deba4051d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nars.storage.Memory.report </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a>&#160;</td>
          <td class="paramname"><em>sentence</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>input</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Display input/output sentence in the output channels. </p>
<p>The only place to add Objects into exportStrings. Currently only Strings are added, though in the future there can be outgoing Tasks; also if exportStrings is empty display the current value of timer ( exportStrings is emptied in <a class="el" href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch_acc60dec23da774957a85362ed6d7448b.html#acc60dec23da774957a85362ed6d7448b">ReasonerBatch#doTick()</a> - TODO fragile mechanism)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sentence</td><td>the sentence to be displayed </td></tr>
    <tr><td class="paramname">input</td><td>whether the task is input </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../db/d0c/Memory_8java_source.html#l00464">464</a> of file <a class="el" href="../../db/d0c/Memory_8java_source.html">Memory.java</a>.</p>

<p>References <a class="el" href="../../db/d0c/Memory_8java_source.html#l00855">nars.storage.Memory.ReasonerBatch.DEBUG</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00104">nars.storage.Memory.getExportStrings()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00531">nars.storage.Memory.getReasoner()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00119">nars.storage.Memory.getTime()</a>, <a class="el" href="../../da/d1c/Sentence_8java_source.html#l00225">nars.entity.Sentence.toStringBrief()</a>, and <a class="el" href="../../db/d0c/Memory_8java_source.html#l01041">nars.storage.Memory.ReasonerBatch.updateTimer()</a>.</p>

<p>Referenced by <a class="el" href="../../db/d0c/Memory_8java_source.html#l00237">nars.storage.Memory.activatedTask()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00256">nars.storage.Memory.derivedTask()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00218">nars.storage.Memory.inputTask()</a>, and <a class="el" href="../../d0/db7/LocalRules_8java_source.html#l00118">nars.inference.LocalRules.trySolution()</a>.</p>
<div class="fragment"><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;                                                         {</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;        <span class="keywordflow">if</span> (ReasonerBatch.DEBUG) {</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;            System.out.println(<span class="stringliteral">&quot;// report( clock &quot;</span> + <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a076ad9a0e872386bca3f2d17fa7cb2d4.html#a076ad9a0e872386bca3f2d17fa7cb2d4">getReasoner</a>().<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aaa97540563b646b33db1263fa3a97d53.html#aaa97540563b646b33db1263fa3a97d53">getTime</a>()</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;                    + <span class="stringliteral">&quot;, input &quot;</span> + input</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;                    + <span class="stringliteral">&quot;, timer &quot;</span> + <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a076ad9a0e872386bca3f2d17fa7cb2d4.html#a076ad9a0e872386bca3f2d17fa7cb2d4">getReasoner</a>().getTimer()</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;                    + <span class="stringliteral">&quot;, Sentence &quot;</span> + sentence</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;                    + <span class="stringliteral">&quot;, exportStrings &quot;</span> + <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a1a17565c7b06ca4ecc1ed57c3fce973f.html#a1a17565c7b06ca4ecc1ed57c3fce973f">getExportStrings</a>());</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;            System.out.flush();</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;        }</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a1a17565c7b06ca4ecc1ed57c3fce973f.html#a1a17565c7b06ca4ecc1ed57c3fce973f">getExportStrings</a>().isEmpty()) {</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;<span class="comment">//          long timer = reasoner.getMainWindow().updateTimer();</span></div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;            <span class="keywordtype">long</span> timer = <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a076ad9a0e872386bca3f2d17fa7cb2d4.html#a076ad9a0e872386bca3f2d17fa7cb2d4">getReasoner</a>().<a class="code" href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch_ad567a9256ef8674e839ed6fe62664987.html#ad567a9256ef8674e839ed6fe62664987">updateTimer</a>();</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;            <span class="keywordflow">if</span> (timer &gt; 0) {</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;                <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a1a17565c7b06ca4ecc1ed57c3fce973f.html#a1a17565c7b06ca4ecc1ed57c3fce973f">getExportStrings</a>().add(String.valueOf(timer));</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;            }</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        }</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        String s;</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        <span class="keywordflow">if</span> (input) {</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;            s = <span class="stringliteral">&quot;  IN: &quot;</span>;</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;            s = <span class="stringliteral">&quot; OUT: &quot;</span>;</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        }</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;        s += sentence.toStringBrief();</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a1a17565c7b06ca4ecc1ed57c3fce973f.html#a1a17565c7b06ca4ecc1ed57c3fce973f">getExportStrings</a>().add(s);</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a076ad9a0e872386bca3f2d17fa7cb2d4_html_a076ad9a0e872386bca3f2d17fa7cb2d4"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a076ad9a0e872386bca3f2d17fa7cb2d4.html#a076ad9a0e872386bca3f2d17fa7cb2d4">nars.storage.Memory.getReasoner</a></div><div class="ttdeci">ReasonerBatch getReasoner()</div><div class="ttdoc">Backward pointer to the reasoner. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00531">Memory.java:531</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aaa97540563b646b33db1263fa3a97d53_html_aaa97540563b646b33db1263fa3a97d53"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aaa97540563b646b33db1263fa3a97d53.html#aaa97540563b646b33db1263fa3a97d53">nars.storage.Memory.getTime</a></div><div class="ttdeci">long getTime()</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00119">Memory.java:119</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a1a17565c7b06ca4ecc1ed57c3fce973f_html_a1a17565c7b06ca4ecc1ed57c3fce973f"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a1a17565c7b06ca4ecc1ed57c3fce973f.html#a1a17565c7b06ca4ecc1ed57c3fce973f">nars.storage.Memory.getExportStrings</a></div><div class="ttdeci">List&lt; String &gt; getExportStrings()</div><div class="ttdoc">List of Strings or Tasks to be sent to the output channels. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00104">Memory.java:104</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1ReasonerBatch_ad567a9256ef8674e839ed6fe62664987_html_ad567a9256ef8674e839ed6fe62664987"><div class="ttname"><a href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch_ad567a9256ef8674e839ed6fe62664987.html#ad567a9256ef8674e839ed6fe62664987">nars.storage.Memory.ReasonerBatch.updateTimer</a></div><div class="ttdeci">long updateTimer()</div><div class="ttdoc">To get the timer value and then to reset it. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01041">Memory.java:1041</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/df4/classnars_1_1storage_1_1Memory_a26cbb4acec5bb2c23a048d7deba4051d_a26cbb4acec5bb2c23a048d7deba4051d_cgraph.svg" width="100%" height="596"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/df4/classnars_1_1storage_1_1Memory_a26cbb4acec5bb2c23a048d7deba4051d_a26cbb4acec5bb2c23a048d7deba4051d_icgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../de/ddc/namespacenars_1_1storage.html">storage</a></li><li class="navelem"><a class="el" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:04:00 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
